]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
volume: Don't set the visibility of the main icon
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 20 Dec 2012 03:45:16 +0000 (22:45 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 21 Dec 2012 17:30:03 +0000 (12:30 -0500)
As the main icon is inside the actor, this is needless calculation.

https://bugzilla.gnome.org/show_bug.cgi?id=690539

js/ui/status/volume.js

index cf9e762b523f1c8c39f41b81b52aea738a5916b1..9f65d71eb89a05040ca1785af7813cc5a37afbff 100644 (file)
@@ -249,8 +249,7 @@ const Indicator = new Lang.Class({
 
     _syncVisibility: function() {
         this.actor.visible = this._hasPulseAudio;
-        this.mainIcon.visible = this._hasPulseAudio;
-        this._headphoneIcon.visible = this._hasPulseAudio && this._volumeMenu.hasHeadphones;
+        this._headphoneIcon.visible = this._volumeMenu.hasHeadphones;
     },
 
     _onScrollEvent: function(actor, event) {